package com.template.method.demo03;

public class Hummer2 extends HummerModel{
    @Override
    public void start() {
        System.out.println("悍马2启动");
    }

    @Override
    public void stop() {
        System.out.println("悍马2停止");
    }

    @Override
    public void alarm() {
        System.out.println("悍马2鸣笛");
    }

    @Override
    public void engineBoom() {
        System.out.println("悍马2引擎咆哮");
    }

    // Hummer2不鸣笛
    protected boolean isAlarm(){
        return false;
    }
}
